package com.syuswe.qimo_02.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author n7c.swe
 * {@code @date} 2024-05
 * 员工实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
//@TableName("emp") 有没有都行
public class Emp {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private String name;
    private Short gender;
    private String image;
    private Short job;
    private LocalDate entrydate; // 入职日期
    private Integer deptId; // 部门id
    private LocalDateTime creatTime;
    private LocalDateTime updateTime;
}
